package me.softwareengineer.guice.rendering.listener;

import me.softwareengineer.guice.rendering.domain.EmptyLineElement;

/**
 * Called to notify about a {@link EmptyLineElement}
 * 
 * <pre>
 * This class is thread-safe and immutable.
 * </pre>
 * 
 * @author yadtahir
 * @since 1.0
 * 
 * @see EmptyLineElement
 * @see OnElementEvent
 */
public class OnEmptyLineEvent extends Event implements OnElementEvent {
	private int numberOfLine;

	/**
	 * Creates empty line event
	 * 
	 * @param numberOfLine
	 *            number of empty lines
	 */
	public OnEmptyLineEvent(int numberOfLine) {
		this.numberOfLine = numberOfLine;
	}

	/**
	 * 
	 * @return number of empty lines
	 */
	public int getEmptyLineCount() {
		return numberOfLine;
	}
}
